package com.yuyou.train.util.bean;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;


public class PageParams {

	@NotNull(message="pageIndex不能为空")
	@Min(value = 0, message = "pageIndex必须大于0")
	@ApiModelProperty(value = "当前页", required = true)
    private Integer pageIndex;

	@NotNull(message="pageSize不能为空")
	@Min(value = 0, message = "pageSize必须大于0")
	@ApiModelProperty(value = "每页最大", required = true)
    private Integer pageSize;

	public Integer getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

}
